/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ac.za.cput.kleintjes.question3.isp.obeys.services.impl;

import ac.za.cput.kleintjes.question3.isp.obeys.services.DayPayment;


/**
 *
 * @author Administrator
 */
public class DailyWorker implements DayPayment
{
    private static final double HOUR_RATE = 15.50;    
    private double hoursWorked;

    public DailyWorker(double hoursWorked) {
        this.hoursWorked = hoursWorked;
    }

    public DailyWorker() {
    }
    
    public double getHoursWorked() {
        return hoursWorked;
    }

    public void setHoursWorked(double hoursWorked) {
        this.hoursWorked = hoursWorked;
    }
    
    @Override
    public double dailyPayment() {
        return hoursWorked * HOUR_RATE;
    }
}
